<?php if(!defined('DB_NAME')) die(); get_header()?>
<?php
//判断是否手机
if( !get('ini_mark') && ismobile() && $obj_key==$ini_key ){
	include "mp/archive.php";
}
else {
?>
	<div id="content">
		<div class="main">
<?php ini_map()?> 
<?php if (get('ini_ad1')) echo "<div class='ad1'>".get('ini_ad1_code')."</div>\n"?> 
<?php
if( have_posts() ):
	while ( have_posts() ): the_post();
		include "inc/article.php";
	endwhile;
endif?>
<?php wp_reset_query()?>
<?php if( get('ini_ad2') ) echo "			<div class='ad2'>".get('ini_ad2_code')."</div>\n"?> 
			<div style=margin-top:20px></div><?php pagination( $query_string, $posts_per_page)?>
		</div>
	</div>
<?php get_sidebar()?>
<?php }?>
<?php get_footer()?>